package com.cw.jeeyt.service.intf.api;

import java.util.List;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.service.bo.api.ApiFacadeProjectInfoBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * api接口文档所在项目业务接口
  * @author chenw
 * @version 1.0.0
 */
public interface ApiFacadeProjectInfoService {
    /**
     * 查询所有api接口文档所在项目列表信息
     */
    List<ApiFacadeProjectInfoBo> queryApiFacadeProjectInfoList() throws Exception;

    /**
     * 删除api接口文档所在项目
     *
     * @param apiFacadeProjectInfoBo
     */
    void delete(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo) throws Exception;

    /**
     * 更新api接口文档所在项目
     *
     * @param apiFacadeProjectInfoBo
     */
    void update(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo) throws Exception;

    /**
     * 更新api接口文档所在项目不为空的字段
     *
     * @param apiFacadeProjectInfoBo
     */
    void updateSelective(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo) throws Exception;

    /**
     * 根据主键查询api接口文档所在项目
     *
     * @return
     */
    ApiFacadeProjectInfoBo getApiFacadeProjectInfoById(Long id) throws Exception;

    /**
     * 新增api接口文档所在项目
     *
     * @param apiFacadeProjectInfoBo
     * @return
     */
    Integer insert(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo) throws Exception;

    /**
     * 新增api接口文档所在项目不为空的字段
     *
     * @param apiFacadeProjectInfoBo
     * @return
     */
    Integer insertSelective(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo) throws Exception;

    /**
     * 分页查询api接口文档所在项目
     *
     * @param apiFacadeProjectInfoBo
     * @param pageNo
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<ApiFacadeProjectInfoBo> queryByPage(ApiFacadeProjectInfoBo apiFacadeProjectInfoBo, Integer pageNo,
        Integer pageSize, Order order) throws Exception;

    /**
     * 批量保存项目信息
     *
     * @param apiFacadeProjectInfoList
     * @throws Exception
     */
    void saveApiProjectInfoBat(List<ApiFacadeProjectInfoBo> apiFacadeProjectInfoList) throws Exception;

    /**
     * 根据项目编码查询项目信息
     *
     * @param projectCodeList
     * @return
     * @throws Exception
     */
    List<ApiFacadeProjectInfoBo> queryListByProjectCodes(List<String> projectCodeList) throws Exception;

}
